// const api =  process.env.NODE_ENV == 'development' ? 'https://fu.icebartech.com/' : 'http://api.chuangchao.org/'
// const api =  'https://fu.icebartech.com/'
const api =  'http://api.chuangchao.org/'
module.exports = {
  //管理员
  ADMIN: {
    LOGIN: api + 'admin/user/login', //登录接口
    MODIFYPWD: api + 'admin/user/updUserPWD' ,//重置密码接口
    LOGOUT:api + 'admin/user/logout'//登出
  },
    SYS: {
        ADMINUPLOAD: api+"base/sys/adminUploadFile",//后台上传文件
        APPUPLOAD: api+"base/sys/appUploadFile",//app上传文件
        EXAMINEPASS: api+"base/sys/checkExaminePass", //判断审核是否通过
        LOADDICTIONARY: api+"base/sys/loadDictionary", //获取系统字典
    },
    CALENDAR: {
        CALENDARLIST: api+"admin/calendarShowTip/findAdminCalendarShowTips", //日历事件列表
        MESSAGELIST: api+"admin/showTip/findAdminShowTips",//滚动消息
    },
    COMPANY: {
        BANKUSERTREE: api+"admin/companyUser/findBankUserTreeByType", //
        COMPANYLIST: api+"admin/companyUser/findCompanyUserByPage", //分页获取企业管理列表
        COMPANYDETAIL: api+"admin/companyUser/findCompnayUserDetailById", //获取企业信息概览
        COMPANYBASEDETAIL: api+"admin/companyUser/findUserBaseDetailById", //获取企业基础信息
        USERTYPE: api+"admin/companyUser/findUserListByUserType", //获取用户类型
        ONOFFUSER: api+"admin/companyUser/onOrOffUser", //设置用户上架下架
        SAVEBASEDETAIL: api+"admin/companyUser/saveUserBaseDetail", //保存企业/资方/推荐机构基础信息
        FINDSTOCKLIST:api+'admin/userStock/findUserStockList',//获取企业用户股权结构信息
        SAVESTOCKLIST:api+'admin/userStock/saveUserStock',//保存企业用户股权结构信息
        FINDUSERQUESTYEAR:api+'admin/userQues/findUserQuestYear',//获取用户标准化问题年限列表
        FINDUSERDETAIL:api+'admin/userQues/findUserQuestDetail',//获取用户标准化问题详情信息
        SAVEUSERQUESTION:api+'admin/userQues/saveUserQuestion',//保存用户标准化问题信息
        FINDUSERBUSSINESSPLAN:api+'admin/businessPlan/findUserBusinessPlan',//获取商业计划书信息
        SAVEBUSSINESSPLAN:api+'admin/businessPlan/saveUserBusinessPlan',//保存商业计划书信息
        FINDUSERCOREPAGE:api+'admin/subUser/findUserSubCoreByPage',//分页获取对应的用户与子账号列表
        SAVEUSERSUBCORE:api+'admin/subUser/saveUserSubCore',//添加用户账号
        SERVICEMANAGERLIST:  api+"admin/subUser/findBankServiceManager",//获取资方所属的客户经理列表
        FINDUSERLOAN:api+'admin/userLoan/findUserLoanList',
        SAVELOAN:api+'admin/userLoan/saveUserLoan',
        FINDUSERFINANCEDETAIL:api+'admin/userFinance/findUserFinanceDetailByFinanceId',
        FINDFINANCEYEARLIST:api+'admin/userFinance/findFinanceYearList',
        SAVEFINANCEBALANCESHEET:api+'admin/userFinance/saveFinanceBalanceSheet',
        SAVEUSERFINACE:api+'admin/userFinance/saveUserFinance',
        SAVEUSERFINANCECASHFLOW:api+'admin/userFinance/saveUserFinanceCashflowSheet',
        SAVEUSERFINANCEPROFIT:api+'admin/userFinance/saveUserFinanceProfitSheet',
        FINANCIALBALANCESHEET:api+'admin/userFinance/findUserFinanceBalanceSheetByPage',
        FINANCIALINDEX:api+'admin/userFinance/findUserFinanceIndexByPage',
        FINANCIALPROFIT:api+'admin/userFinance/findUserFinanceProfitSheetByPage',
        FINANCIALOTHER:api+'admin/userFinance/findUserFinanceOtherSheetByPage',
        FINANCIALCASHFLOW:api+'admin/userFinance/findUserFinanceCashflowSheetByPage',
    },
    USERCOMPANY:{
        FINDSTOCKLIST:api+'admin/userCompanyStock/findUserCompanyStockList',
        SAVESTOCKLIST:api+'admin/userCompanyStock/saveUserCompanyStock',
    },
    BANK: {
        BANKUSER: api+"admin/bankUser/findBankUserByPage", //资方列表用户
        BANKUSERSUBBANK: api+"admin/bankUser/findBankUserSubBankList", //资方支行列表
        SAVEBANKUSER: api+"admin/bankUser/saveBankUserSubBank", //保存资方用户支行
        ONOROFFSUBBANK: api+"admin/bankUser/onOrOffSubBank",//设置上架下架
    },
    ORDER: {
        DISPATCHORDERLIST: api+"admin/disPatchOrder/findDispatchUserOrderByPage", //分页获取已派订单列表
        DISPATCHORDERCOMMENTLIST: api+"admin/disPatchOrder/findDispatchUserOrderCommentList",//获取已派订单状态流转列表
        DISPATCHORDERDETAIL: api+"admin/disPatchOrder/findDispatchUserOrderDetail", //获取已派订单详情信息
        DISPATCHORDERQUESTIONLIST: api+"admin/disPatchOrder/findDispatchUserOrderQuestionList",//获取已派订单问题列表
        DISPATCHORDERCOMMENT: api+"admin/disPatchOrder/saveDispatchUserOrderComment",//流转已派订单阶段状态与备注
        DISPATCHORDERSAVEANSWER: api+"admin/disPatchOrder/saveDispatchUserOrderAnswer",//已派订单提交问题回复
        DISPATCHORDERSAVEQUESTION: api+"admin/disPatchOrder/saveDispatchUserOrderQuestion",//添加订单阶段问题

        ADDADVISER: api+"admin/order/addUserOrderAdviser",//对可派订单进行指派顾问
        DISPATCHUSERORDER: api+"admin/order/dispatchUserOrder",//可派订单派单
        RADIOS: api+"admin/order/findCommentRadiosByStepKey",//获取流转状态控件列表
        ORDERSTEPLIST: api+"admin/order/findOrderStepList",//获取订单阶段状态列表
        ORDERBANKLIST: api+"admin/order/findUserOrderBankList",//获取派单资方列表
        ORDERLIST: api+"admin/order/findUserOrderByPage",//分页获取可派订单列表
        ORDERCOMMENTLIST: api+'admin/order/findUserOrderCommentList',//获取可派订单状态流转列表
        ORDERDETAIL: api+"admin/order/findUserOrderDetail",//获取订单详情信息
        ORDERQUESTIONLIST: api+"admin/order/findUserOrderQuestionList",//获取可派订单问题列表
        SAVEORDERANSWER: api+"admin/order/saveUserOrderAnswer", //提交问题回复或提交附件
        ORDERCOMMENT: api+"admin/order/saveUserOrderComment",//流转订单阶段状态与备注

        SAVEORDERQUESTION: api+"admin/order/saveUserOrderQuestion",//添加订单阶段问题

        ATTACHMENT: api+"admin/order/collectAnswerAttachment",//归档附件

        DELETE: api+"admin/order/deleteOrderQuestion",//删除可派订单
        DELETEDISPATCH: api+"admin/disPatchOrder/deleteDispatchOrderQuestion",//删除已派订单
    },
    ROLEUSER: {
        ROLE: api+"admin/roleUser/findAdminUserByRoleKey", // 后台获取各角色列表用户列表
    },
    FINANCE: {
        PRODUCTALL: api+"admin/financingProduct/findFinancingProductByAll",//获取贷款产品列表
        PRODUCTDETAIL: api+"admin/financingProduct/findFinancingProductById",//获取产品详情
        PRODUCTLIST: api+"admin/financingProduct/findFinancingProductByPage", //获取贷款产品列表
        ONOROFFPRODUCT: api+"admin/financingProduct/onOrOffProduct", //设置上架 下架
        SAVEPRODUCT: api+"admin/financingProduct/saveFinancingProduct", //保存贷款产品信息
        FINDCURRENTCOMPANY:api+'admin/financeAssociation/findCurrentAssociationCompany',
        SAVEASSOCIATION:api+'admin/financeAssociation/saveAssociationCompany'
    },
    BANNER: {
        DELETEBANNER: api+"admin/adv/deleteAppBannerById", //删除广告
        BANNERLIST: api+"admin/adv/findAppBannerByPage", //banner列表
        SAVEBANNER: api+"admin/adv/saveAppBanner", //保存广告
    },
    CHECK: {
        CHECK: api+"admin/financingAuth/checkUserFinancingAuthById",//审核融资认证记录
        CHECKDETAIL:api+ "admin/financingAuth/findUserFinancingAuthById",//获取融资认证记录详情
        FINANCELIST: api+"admin/financingAuth/findUserFinancingAuthByPage",//分页获取融资认证记录
        EDIT: api+"admin/financingAuth/editFinancingAuth",//编辑
    },
    LOAN: {
        LOANLIST: api+"admin/bankLoan/findUserOrderBankLoanByPage",//分页获取贷后订单列表
    },
    CHANNEL: {
        CHANNELLIST: api+"admin/channelUser/findChannelUserByPage",//分页查找推荐机构用户列表
    },
  USER:{
      FINDAPPUSERBYPAGE:api+'admin/appUser/findAppUserCoreByPage',    // 分页获取房车C端用户列表
      SAVEAGENTUSER:api+'admin/appUser/saveAgentUser',   //  编辑或新增  代理用户
      FINDAPPUSERDETAILBYID:api+'admin/appUser/findAppUserDetailById',  // 获取代理用户详情

      LOCKAPPUSERLOGIN:api+'admin/appUser/lockAppUserLogin',   // 锁定用户登录
      SAVEAPPUSERDETAIL:api+'admin/appUser/saveAppUserDetail',  // 保存

      // 普通用户升级代理人
      UPGRADEAGENT:api+'admin/appUser/upgrade2Agent',
      // 修改代理人等级
      UPDATEUSERLEVEL:api+'admin/appUser/updateUserLevel',
      // 销售业绩录入
      CALCULATEAGENTPOINTS:api+'admin/points/calculateAgentPoints',
      // 修改股权，积分
      UPDATEUSERPOINTS:api+'admin/points/updateUserPoints',



      FINDADMINUSERBYPAGE:api+'admin/user/findAdminUserByPage',   //  分页获取用户列表
      FINDUSERPERMISSIONS:api+'admin/user/findUserPermissions' ,  //  用户权限列表
      FINDADMINUSERDETAILBYUSERID:api+'admin/user/findAdminUserDetailByUserId',   // 用户详情
      SAVEADMINUSER:api+'admin/user/saveAdminUser',    // 保存用户
      DELETEADMINUSERBYID:api+'admin/user/deleteAdminUserByUserId',     // 删除
  },
  SYSTEM:{
    // ADMINUPLOADFILE:'https://daorv.icebartech.com/base/sys/adminUploadFile',  // 上传文件
    ADMINUPLOADFILE: api+'base/sys/adminUploadFile',  // 上传文件
    FINDUSERPERMISSIONS:api+'admin/user/findUserPermissions',     // 获取用户拥有的左侧菜单权限

    // 角色管理
    FINDAPPROLEBYPAGE:api+'admin/role/findAppRoleByPage',   // 分页获取角色列表
    GETALLAPPPERMISSION:api+'admin/role/getAllAppPermission',  // 获取所有权限列表
    GETROLEINFOBYID:api+'admin/role/getRoleInfoByRoleId',   // 获取角色详情
    DELETEROLEBYID:api+'admin/role/deleteRoleByRoleId',   // 删除角色记录
    SAVEAPPROLE:api+'admin/role/saveAppRole',   // 保存角色

    FINDAPPBANNERBYPAGE:api+'admin/adv/findAppBannerByPage',  // 分页获取Banner列表
    SAVEBANNER:api+'admin/adv/saveAppBanner',
    SAVEADV:api+'admin/adv/saveAdvH5',  //
    FINDADVBYPAGE:api+'admin/adv/findAdvH5ByPage',

    DELETEADV:api+'admin/adv/deleteAdvH5ById',
    DELETEBANNER:api+'admin/adv/deleteAppBannerById',
    FINDBALANCEDETAIL:api+'admin/userFinance/findUserFinanceBalanceSheetByDetail',
    SAVEFINANCEBALANCESHEET:api+'admin/userFinance/saveFinanceBalanceSheet',
    FINDPROFITDETAIL:api+'admin/userFinance/findUserFinanceProfitSheetByDetail',
    FINDCASHFLOWDETAIL:api+'admin/userFinance/findUserFinanceCashflowSheetByDetail',
    FINDOTHERSHEETDETAIL:api+'admin/userFinance/findUserFinanceOtherSheetByDetail',
    SAVEINFOEDIT:api+'admin/userFinance/saveUserFinanceOtherSheet',
    SAVEUSERFINANCEPROFIT:api+'admin/userFinance/saveUserFinanceProfitSheet',
    SAVEUSERFINANCECASHFLOW:api+'admin/userFinance/saveUserFinanceCashflowSheet',
  },
  ATTACHMENT:{
    FINDGROUPBYCOMPANY:api+'admin/attachment/findGroupByCompany',//分页获取归档公司分组列表
    FINDATTACHMENTBYCOMPANY:api+'admin/attachment/findAttachmentCollectByPage'//分页获取某公司下的归档材料列表
  },
  REPORT:{
    FINDBANKLOANREPORTDATA:api+'admin/report/findBankLoanReportData',// 获取贷后订单管理页各统计值
    FINDBANKREPORTDATA:api+'admin/report/findBankReportData',// 获取资方管理页各统计值
    FINDCHANNELREPORTDATA:api+'admin/report/findChannelReportData',// 获取推荐机构管理页各统计值
    FINDCOMPANYREPORTDATA:api+'admin/report/findCompanyReportData',// 获取企业管理页各统计值
    FINDFINANCINGAUTHDATA:api+'admin/report/findFinancingAuthReportData',// 获取融资认证管理页各统计值
    FINDORDERBANKREPORTDATA:api+'admin/report/findOrderBankReportData',// 获取已派订单管理页各统计值
    FINDPRODUCTREPORTDATA:api+'admin/report/findProductReportData',// 获取贷款产品管理页各统计值
    FINDREPORTDATA:api+'admin/report/findReportData',// 获取首页各报表统计值
    FINDUSERORDERREPORTDATA:api+'admin/report/findUserOrderReportData'// 获取可派订单管理页各统计值
  }
}
